﻿<!--
ChangeTracking (a library for POCO change tracking).

Copyright (C) 2014 Dmitry Merzagitovich Arslanov

This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option) any
later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-->

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ChangeTrackingSample.ModifyDialog"
    x:Name="Wnd"
    Title="Modify"
    ResizeMode="NoResize"
    SizeToContent="WidthAndHeight"
    WindowStartupLocation="CenterScreen">
    <StackPanel Margin="11">
        <Grid Margin="0,0,0,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock
                Text="Name:"
                VerticalAlignment="Center"
                Margin="0,0,5,5" />
            <TextBlock
                Text="Value:"
                Grid.Row="1"
                Margin="0,0,5,0" />
            <TextBox
                Text="{Binding ElementName=Wnd, Path=EntityName}"
                Grid.Column="1"
                Margin="0,0,0,5" />
            <TextBox
                Text="{Binding ElementName=Wnd, Path=EntityValue}"
                Grid.Column="1"
                Grid.Row="1" />
        </Grid>
        <StackPanel
            Orientation="Horizontal"
            HorizontalAlignment="Right">
            <Button
                Width="75"
                Height="23"
                Content="OK"
                IsDefault="True"
                Margin="0,0,5,0"
                Click="OkClick"/>
            <Button
                Width="75"
                Height="23"
                Content="Cancel"
                IsCancel="True" />
        </StackPanel>
    </StackPanel>
</Window>
